const Router = require('koa-router')
const { auth } = require('../middleware/auth.middleware')
const router = new Router({ prefix: '/carousels' })

router.get('/', (ctx) => {
    ctx.body = '获取轮播图'
})

router.post('/', auth, (ctx) => {
    ctx.body = '添加轮播图'
})

module.exports = router